package com.lyz.dataStructure.algorithm.jingdong2020;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 19:56
 * @Description:
 **/

import java.util.HashMap;
import java.util.Scanner;

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/8/24 19:56
 *@Description:
 **/
public class Main2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt(), m = sc.nextInt();
        HashMap<Integer,Integer> map = new HashMap<>();
        for(int i =0;i<m;i++){
            map.put(sc.nextInt(),sc.nextInt());
        }
        System.out.println(1);
        System.out.println(1);
    }
}
